From ea2d44491c2b9a6909a55a488347bf7cb6f834b5 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Wed, 2 Oct 2024 20:14:17 +0200 Subject: [PATCH] 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; })();